/*
 * PhotoDevBO.java
 *
 * Created on April 3, 2007, 12:47 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package finalintex2web;

/**
 *
 * @author Isenbargers
 */
public class PhotoDevBO extends RevenueSourceBO {
    
    String format;
    String photoID;
    String desc;
    int quantity;
    
    /*  This string allows us to identify the Revenue Source when a PhotoDevBO is
     *      cast or created as a generic Revenue Source.  It also allows us to 
     *      track it in the Revenue Source table in the DB.     */
    String type = "photos";
    
    /** Creates a new instance of PhotoDevBO 
    
     * public PhotoDevBO() {
    }*/
    
    PhotoDevBO (String s){
        super(s);
        super.setId(s);
    }
        
    //  Below are the various Sets & Gets for instance variables
        
    public String getDescription(){
        if (desc == null)
            return "N/A";
        else
            return desc;
    }
    
    public void setDescription(String describe){
        desc = describe;
    }
    
    public String getName(){
        return type;
    }
    
    public String getFormat(){
        return format;
    }
    
    public void setFormat(String fmt){
        format = fmt;
    }
    
    public String getPhotoID(){
        return photoID;
    }
    
    public void setPhotoID(String id){
        photoID = id;
    }
    
    public int getQty(){
        return quantity;
    }
    
    public void setQty(int x){
        quantity = x;
    }
}